/**
 * 
 */
package com.ygj.shop.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.base.common.persistent.dao.CompoundsShopMapper;
import com.ygj.shop.service.CompoundsShopService;

/**
 * @author "kat.luhongkai"
 *
 */
@Service("compoundsShopService")
public class CompoundsShopServiceImpl implements CompoundsShopService {
	
	@Resource
	private CompoundsShopMapper compoundsShopMapper;

	/* (non-Javadoc)
	 * @see com.ygj.shop.service.CompoundsShopService#getShopIDsByCompoundsId(int)
	 */
	@Override
	public List<Integer> getShopIDsByCompoundsId(int compoundsId) {
		
		return compoundsShopMapper.getShopIDsByCompoundsId(compoundsId);
	}

	@Override
	public double getMarketValueProportion(int compoundsId, Integer cid) {
		return compoundsShopMapper.getMarketValueProportion(compoundsId, cid);
	}

	@Override
	public List<Integer> getShopIDsByCityName(String cityName) {
		return compoundsShopMapper.getShopIDsByCityName(cityName);
	}

}
